package com.cyw.system.domain.bo;

import com.cyw.common.core.domain.BaseEntity;
import com.cyw.common.core.validate.AddGroup;
import com.cyw.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 标签业务对象 tb_label
 *
 * @author myproject
 * @date 2022-11-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("标签业务对象")
public class TbLabelBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标签名
     */
    @ApiModelProperty(value = "标签名", required = true)
    @NotBlank(message = "标签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String labelName;

    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色", required = true)
    @NotBlank(message = "颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String color;


}
